import axios from "./http"
export const Register=(data)=>axios.post("/api/auth/register",data)//注册
export const getMsgCode=(data)=>axios.post("/api/auth/msgCode",data)//获取验证码
export const login=(data)=>axios.post("/api/auth/login",data)//登入
export const quickLogin=(data)=>axios.post("/api/auth/quick_login",data)//短信快捷登入
export const bind_mobile=(data)=>axios.post("/api/auth/bind_mobile",data)//手机绑定 
export const resetPassword=(data)=>axios.post("/api/auth/resetPassword",data)//修改密码
export const weLogin=(data)=>axios.get("/api/auth/we_login",{params:data})//微信登入
export const parseCode=(data)=>axios.post("/api/auth/parseCode",data)//code
export const home=(data)=>axios.get("/api/home")//首页数据
export const activities=(data)=>axios.get("/api/home/activities",{params:data})//活动
export const activityDetail=(data)=>axios.get("/api/activity/detail",{params:data})//活动详情
export const activityProduct=(data)=>axios.get("/api/activity/products",{params:data})//活动详情
export const productDetail=(data)=>axios.get("/api/product/detail",{params:data})//产品详情
export const productSku=(data)=>axios.get("/api/product/sku",{params:data})//产品参数选择
export const orderCreate=(data)=>axios.post("/api/order/create",data)//创建订单
export const orderDetail=(data)=>axios.get("/api/order/detail",{params:data})//订单详情
export const area=()=>axios.get("/api/area")//地址
export const unifiedOrder=(data)=>axios.post("/api/pay/unified_order",data)//下单
export const addressAdd=(data)=>axios.post("/api/address/store",data)//添加地址
export const addressList=()=>axios.get("/api/address/list")//地址列表 
export const addressUpdate=(data)=>axios.post("/api/address/update",data)//地址修改
export const addressEdit=(data)=>axios.get("/api/address/edit",{params:data})//地址详情
export const orderStatus=(data)=>axios.post("/api/order/status",data)//获取订单状态 幸运码
export const activityJoin=(data)=>axios.get("/api/activity/join",{params:data})//参与活动详情
export const activityHistories=(data)=>axios.get("/api/activity/histories",{params:data})//活动历史纪录
export const apiUser=(data)=>axios.get("/api/user")//个人信息
export const order=(data)=>axios.get("/api/order",{params:data})//订单列表
export const cancelOrder=(data)=>axios.post("/api/order/cancel",data)//取消订单
export const orderDestroy=(data)=>axios.post("/api/order/destroy",data)//取消订单
export const shippingStatus=(data)=>axios.get("/api/order/shipping_status",{params:data})//物流信息
export const orderConfirm=(data)=>axios.post("/api/order/confirm_order",data)//确认收货
export const imageUpload=(data)=>axios.post("/api/image/upload",data)//上传图片
export const evaluate=(data)=>axios.post("/api/order/store_evaluate",data)//评价
export const productEvaluate=(data)=>axios.get("/api/product/evaluate",{params:data})//宝贝评价
export const historyDetail=(data)=>axios.get("/api/activity/history_detail",{params:data})//物流信息
export const activityCalculate=(data)=>axios.get("/api/activity/calculate",{params:data})//中奖详情
export const activityList=(data)=>axios.get("/api/activity/list",{params:data})//中奖列表
export const calculateDetail=(data)=>axios.get("/api/activity/calculate_detail",{params:data})//中奖列表
export const userAccounts=(data)=>axios.get("/api/user/accounts",{params:data})//资金明细
export const activityStoreShare=(data)=>axios.post("/api/activity/storeShare",data)//分享晒单
export const activityShare=(data)=>axios.get("/api/activity/share",{params:data})//分享晒单
export const withdrawBind=(data)=>axios.post("/api/withdraw/bind",data)//绑定支付
export const withdrawAccounts=(data)=>axios.get("/api/withdraw/accounts")//支付列表
export const withdrawDefault=(data)=>axios.get("/api/withdraw/default",{params:data})//获取体现信息
export const withdrawSingle=(data)=>axios.post("/api/withdraw/single",data)//提现
export const withdrawEdit=(data)=>axios.get("/api/withdraw/edit",{params:data})//编辑账号
export const withdrawUpdate=(data)=>axios.post("/api/withdraw/update",data)//修改账号
export const withdrawDestory=(data)=>axios.post("/api/withdraw/destroy",data)//删除账号
export const messageList=(data)=>axios.get("/api/service/message_list",{params:data})//客服消息列表
export const addressDestroy=(data)=>axios.post("/api/address/destroy",data)//地址删除
export const userFavorite=(data)=>axios.post("/api/user/favorite",data)//收藏
export const userFavoriteList=(data)=>axios.get("/api/user/favorite_list",{params:data})//收藏列表
export const favoriteDel=(data)=>axios.post("/api/user/favorite_del",data)//收藏删除
export const refundOrder=(data)=>axios.get("/api/order/refund_order",{params:data})//退换货信息
export const orderRefund=(data)=>axios.post("/api/order/refund",data)//退换货
export const userShare=()=>axios.get("/api/user/share")//分享转发
export const refundList=(data)=>axios.get("/api/order/refund_list",{params:data})//退款列表
export const userShareList=(data)=>axios.get("/api/user/share_list",{params:data})//分享列表
export const article=(data)=>axios.get("/api/article",{params:data})//公告列表
export const articleDetail=(data)=>axios.get("/api/article/detail",{params:data})//公告详情
export const userInfo=(data)=>axios.get("/api/user/info",{params:data})//个人中心
export const activitySearch=(data)=>axios.get("/api/activity/search",{params:data})//搜索
export const hotActivities=(data)=>axios.get("/api/home/hot_activities",{params:data})//热门活动
export const lotteryDetail=(data)=>axios.get("/api/activity/lottery_detail",{params:data})  
export const ruleDetail=(data)=>axios.get("/api/activity/rule",{params:data})  
export const joinList=(data)=>axios.get("/api/activity/join_list",{params:data})  
export const lucky=(data)=>axios.get("/api/activity/lucky",{params:data})  
export const teamOrder=(data)=>axios.get("/api/user/team_orders",{params:data})  
export const teamDetail=(data)=>axios.get("/api/user/team_detail",{params:data})  
export const teamOrderDetail=(data)=>axios.get("/api/order/team_order_detail",{params:data})  
export const teamReward=(data)=>axios.get("/api/order/team_reward",{params:data})  
export const userReward=()=>axios.get("/api/user/reward")  
export const homeJsk=()=>axios.get("/api/home/jsk")  
export const shareRule=(data)=>axios.get("/api/activity/share_rule",{params:data})  
export const coupon=(data)=>axios.get("/api/activity/coupon",{params:data})  
export const inviteCount=()=>axios.get("/api/user/invite_count")  
export const inviteList=(data)=>axios.get("/api/user/invite_list",{params:data})  
export const inviteDetail=(data)=>axios.get("/api/user/invite_detail",{params:data})  
export const inviteSearch=(data)=>axios.get("/api/user/invite_search",{params:data})  
export const inviteOrder=(data)=>axios.get("/api/user/invite_order",{params:data})  
export const history_list=(data)=>axios.get("/api/activity/history_list",{params:data})  
export const my_numbers=(data)=>axios.get("/api/activity/my_numbers",{params:data})  
export const shareRegister=()=>axios.get("/api/auth/shareRegister")  
export const downLoad=()=>axios.get("/api/home/downLoad")  
export const cart_store=(data)=>axios.post("/api/order/cart_store",data)//收藏购物车
export const cart=()=>axios.get("/api/order/cart")  
export const cart_destroy=(data)=>axios.post("/api/order/cart_destroy",data)//删除购物车
export const cart_update=(data)=>axios.post("/api/order/cart_update",data)//更新购物车
export const create_from_cart=(data)=>axios.post("/api/order/create_from_cart",data)//更新购物车
export const detail_ty=(data)=>axios.get("/api/order/detail_ty",{params:data})//订单详情
export const xlzq=()=>axios.get("/api/article/xlzq")
export const _xlzq=(data)=>axios.get("/api/article/xlzq",{params:data})
export const ty_pay=(data)=>axios.post("/api/pay/ty_pay",data)
export const pay_success=()=>axios.get("/api/order/pay_success")
export const ty_close_order=(data)=>axios.post("/api/order/ty_close_order",data)
export const set_default_addr=(data)=>axios.post("/api/address/set_default_addr",data)
export const discount=(data)=>axios.get("/api/activity/discount",{params:data})
export const discount_detail=(data)=>axios.get("/api/activity/discount_detail",{params:data})
export const discount_module=(data)=>axios.get("/api/activity/discount_module",{params:data})























































